package com.tanhua.sso.service;

import com.tanhua.sso.pojo.User;

/**
 * @author 西楚霸王
 * @date 2020/11/13 12:59
 */
public interface UserService {

    /**
     * 登录逻辑
     */
   public String login(String mobile, String code);

    /**
     * token校验并更新状态
     * @param token
     * @return
     */
    public User queryUserByToken(String token);

    Boolean updateNewMobile(Long id, String newPhone);
}
